package pojo;

/**
 * 菜单实体类
 * @author 叶军军
 */
public class Menu {

    /**
     * ID
     */
    private int meId;

    /**
     * 名称
     */
    private String meName;

    /**
     * 菜单所指网页地址
     */
    private String meUrl;

    /**
     * 所属父级菜单
     */
    private int meHigh;

    /**
     * 是否禁用
     */
    private int meRool;

    /**
     * 父级菜单名称
     */
    private String meHighName;

    /**
     * setter和getter方法
     */
    public int getMeId() {
        return meId;
    }

    public void setMeId(int meId) {
        this.meId = meId;
    }

    public String getMeName() {
        return meName;
    }

    public void setMeName(String meName) {
        this.meName = meName;
    }

    public String getMeUrl() {
        return meUrl;
    }

    public void setMeUrl(String meUrl) {
        this.meUrl = meUrl;
    }

    public int getMeHigh() {
        return meHigh;
    }

    public void setMeHigh(int meHigh) {
        this.meHigh = meHigh;
    }

    public int getMeRool() {
        return meRool;
    }

    public void setMeRool(int meRool) {
        this.meRool = meRool;
    }

    public String getMeHighName() {
        return meHighName;
    }

    public void setMeHighName(String meHighName) {
        this.meHighName = meHighName;
    }

    /**
     * 无参的构造方法
     */
    public Menu() {
    }


    /**
     * 有参的构造方法
     * @param meId
     * @param meName
     * @param meUrl
     * @param meHigh
     * @param meRool
     * @param meHighName
     */
    public Menu(int meId, String meName, String meUrl, int meHigh, int meRool, String meHighName) {
        this.meId = meId;
        this.meName = meName;
        this.meUrl = meUrl;
        this.meHigh = meHigh;
        this.meRool = meRool;
        this.meHighName = meHighName;
    }

    /**
     * 重写toString方法
     * @return
     */
    @Override
    public String toString() {
        return "Menu{" +
                "meId=" + meId +
                ", meName='" + meName + '\'' +
                ", meUrl='" + meUrl + '\'' +
                ", meHigh=" + meHigh +
                ", meRool=" + meRool +
                ", meHighName='" + meHighName + '\'' +
                '}';
    }
}
